package com.sang.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KuangRule {

    @Bean
    public IRule myRule() {
        return new KuangRandomRule();   //默认是轮询，现在自定义为KuangRandomRule调用自己的
    }

}
